{block content}

<div id="window" >
    {ifset $mainMenu}
    <ul class="mainMenu">
	<li {ifCurrent $link} class="current"{/ifCurrent} n:foreach="$mainMenu as $item => $link">
	    <a  n:href="$link">{$item}</a>
	</li>
    </ul>
    {/ifset}
    {ifset $subMenu}
    <ul class="subMenu">
	<li {ifCurrent $link} class="current"{/ifCurrent} n:foreach="$subMenu as $item => $link" >
	    <a n:href="$link">{$item}</a>
	    {sep}<samp class="separator"></samp>{/sep} 
	</li>
    </ul>
    {/ifset}
    <div n:foreach="$flashes as $flash" class="flash {$flash->type}">{$flash->message}</div>
    {control findPatient}
    {* RODINA ANAMNEZA *}
    {ifset $familyAnamnesis}
    rodina
    {/ifset}
        {ifset $personalAnamnesis}
    osobni
    {/ifset}
        {ifset $seizureAnamnesis}
    zachvatova
    {/ifset}
    {* VYSLEDKY VYHLEDANANI *}
    {ifset $resultQuery}
    <table id="resultQuery" >
	<tr class="rowa">
	    <td>Rodné číslo</td>
	    <td>Příjmení</td>
	    <td>Jméno</td>
	    <td>Přezdívka</td>
	    <td>Pohlaví</td>
	</tr>
	{foreach $resultQuery as $key => $value} 
	<tr {if $iterator->isOdd()}class="rowb" {/if} {if $iterator->isEven()}class="rowa" {/if} >
	    <td><a n:href="view $value['id']">{$value['identificationNumber']}</a></td>
	    <td><a n:href="view $value['id']">{$value['surName']}</a></td>
	    <td><a n:href="view $value['id']">{$value['firstName']}</a></td>
	    <td><a n:href="view $value['id']">{$value['nickName']}</a></td>
	    <td><a n:href="view $value['id']">{$value['gender']}</a></td>
	</tr>
	{/foreach}
    </table>
    {/ifset}
{dump}
</div>



